www.gusucode.com > 地方成人教育中心整站源代码 1 > 地方成人教育中心整站源代码 1.0/manage/Admin_Photo.asp

    <!--#include file="chkuser.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="Function/Function_Photo.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="copyright" content="Copyright 2008 dananshan.com" />
<meta name="Author" content="闪电文章管理系统技术支持---www.dananshan.com" />
<meta name="Keywords" content="闪电文章管理系统文章管理系统" />
<meta name="Description" content="闪电文章管理系统文章管理系统" />
<title>企业相册</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/Admin.js"></script>
</head>
<body>
<%
'========判断是否具有管理权限
if Instr(session("AdminPower"),"|102,")=0 then 
	response.write ("<font color='red')>你不具有该管理模块的操作权限,请返回!</font>")
	response.end
else
	call Main_Content()
end if
%>
</body>
</html>
<%
Function Main_Content()
	response.write "<div id='frame_Toolbar' class='toolbarBg'> "
	response.write "<a href='javascript:self.history.back();' class='icoBtn_ct'><span class='btnIco btnBack'></span><span class='btnTxt'>返回</span></a>"
	response.write "<a href='javascript:self.location.reload();' class='icoBtn_ct'><span class='btnIco btnReload'></span><span class='btnTxt'>刷新</span></a> <span class='split ftSplit' ></span>"
	response.write "<div id='guide'>点击<span class='light_orange'> 产品标题 </span>进行编辑</div>"
	response.write "<div class='pageInfo right light_gray'>[当前共有<span id='Label_total_top' class='light_bOrange'>"&Inf_Count()&"</span>条记录]</div>"
	response.write "</div>"
	response.write "<form method='POST' id=form2 name='form2'>"
	response.write "<div id='content'>"
	response.write "<table class='cTable table tCenter'>"
	response.write "<tr class='cTitle toolbarBg' id='Title'>"
	response.write "<td width='5%'><div>NO.</div></td>"
	response.write "<td width='35%'><span class='split ctSplit'></span><div>照片名称</div></td>"
	response.write "<td width='20%'><span class='split ctSplit'></span><div>所属相册</div></td>"
	response.write "<td width='20%'><span class='split ctSplit'></span><div>发布日期</div></td>"
	response.write "<td width='10%'><span class='split ctSplit'></span><div>是否发布</div></td>"
	response.write "<td width='10%'><span class='split ctSplit'></span><div>"
	response.write "<input type='button' class='button' style='width:31px;height:19px;padding-top:2px;' name='Btn_Select' value='全选' onClick='selectall()'>&nbsp;"
	response.write "<input type='button' class='button' style='width:31px;height:19px;padding-top:2px;' name='Btn_Cancel' value='反选' onClick='cancelall()'>"
	response.write "</div>"
	response.write "</td>"
	response.write "</tr>"
	response.write "</table>"
	response.write "<table class='cTable table tCenter' cellspacing='0' border='0' style='border-collapse:collapse;'>"
    sql="select * from Idea_Photo order by ID desc"
	set rs=idea.exec(sql,1)
	if not rs.eof then
		rs.pagesize=14
		curpage=Request.QueryString("curpage")
		if curpage="" then curpage=1
		rs.absolutepage=curpage
		for i=1 to rs.pagesize
		if rs.eof then
		exit for
		end if
		response.Write"<tr>"
		response.Write"<td style='width:5%;'>"&rs("ID")&"</td>"
		response.Write"<td style='width:35%;'><a href='Admin_PhotoEdit.asp?Form=Edit&ID="&rs("ID")&"''>"&gotTopic(rs("PhotoName"),22)&"</a></td>"
		sql1="select * from Idea_PhotoSort where ID="&rs("SortID")
		set rs1=idea.exec(sql1,1)
		response.Write"<td style='width:20%;'>"&rs1("SortName")&"</td>"
		rs1.close
		set rs1=nothing
		response.Write"<td style='width:20%;'>"&rs("AddDate")&"</td>"
		if rs("IsShow")=true then
		response.Write"<td style='width:10%;' align='center'><div style='width:15px;height:10px;background-image: url(images/IcoBtn.gif); background-repeat: no-repeat; border: 0;background-position: -470px -3px;'></div></td>"
		else
		response.Write"<td style='width:10%;' align='center'><div style='width:15px;height:10px;background-image: url(images/IcoBtn.gif); background-repeat: no-repeat; border: 0;background-position: -485px -3px;'></div></td>"
		end if
		response.Write"<td align='center' style='width:10%;'><div style='float:left;width:50px;height:17px;background-image: url(images/IcoBtn.gif); background-repeat: no-repeat; border: 0;background-position: -222px 0px;'><a href='Admin_PhotoEdit.asp?Form=Edit&ID="&rs("ID")&"''><img width='50' height='17' style='border:0;' src='images/Empty.gif'></a></div>"
		response.Write"<input type='checkbox' name='chk' value='"&rs("ID")&"' />"
		response.Write"</td>"
		response.Write"</tr>"
		rs.movenext
		next
	else
	    response.Write"<tr><td colspan='5' align='center' style='width:100%;'>还没有添加数据!</td><td></td></tr>"
	end if	
	response.Write "<tr>"
	response.Write "<td colspan='5' width='90%'></td>"
	response.Write "<td align='center'>"
	response.Write "<input type='submit' class='button' style='width:80px;height:19px;padding-top:2px;' id='Btn_DellAll' name='Btn_DellAll' value='删除所选' onClick=""document.form2.action='?Action=delall';return confirm('确定要删除吗?');"">"
	response.Write "</td>"
	response.Write "</tr>"
	response.Write "</table>" 
	response.Write "<div id='cEndToolbar' class='toolbarBg'>"
	response.Write "<div class='pageList'>"
	if curpage=1 then
		Response.Write "首页&nbsp;|&nbsp;"
	else
		Response.Write "<a href='?curpage=1'>首页</a>&nbsp;|&nbsp;"
	end if
	if curpage=1 then
		Response.Write "上一页&nbsp;|&nbsp;"
	else
		Response.Write "<a href='?curpage="&curpage-1&"'>上一页</a>&nbsp;|&nbsp;"
	end if
	if rs.pagecount<curpage+1 then
		Response.Write "下一页&nbsp;|&nbsp;"
	else
		Response.Write "<a href='?curpage="&curpage+1&"'>下一页</a>&nbsp;|&nbsp;"
	end if
	if rs.pagecount<curpage+1 then
		Response.Write "尾页&nbsp;&nbsp;"
	else
		Response.Write "<a href='?curpage="&rs.pagecount&"'>尾页</a>&nbsp;&nbsp;"
	end if
		Response.Write "当前第"&curpage&"页&nbsp;"
		Response.Write "共"&rs.pagecount&"页&nbsp;&nbsp;"
	response.Write "</div>"
	rs.close()
	set rs=nothing
	response.Write "</div>"
	response.Write "</form>"
End Function
%>